<?php $this->headTitle('Users'); ?>

<?php $this->placeholder('tabs')->captureStart(); ?>
<ul>
    <li class="active-tab"><a href=""><span>Users</span></a></li>
    <li><a href=""><span>Roles</span></a></li>
</ul>
<?php $this->placeholder('tabs')->captureEnd(); ?>

<h1>User Administration</h1>
<p>Here you can edit a user's information, manage his roles and set various other options</p>

<form class="mz-dl-form" method="<?php echo $this->form->getMethod(); ?>" action="<?php echo $this->form->getAction(); ?>" enctype="<?php echo $this->form->getEncType(); ?>">
<fieldset>
    <legend>User information: </legend>
    <dl>
        <dt>
            <label for="<?php echo $this->form->username->getId(); ?>">
                <?php echo $this->form->username->getLabel(); ?>
                <?php echo $this->form->username->renderErrors(); ?>
            </label>
        </dt>
        <dd>
            <?php echo $this->form->username->renderViewHelper(); ?>
        </dd>
    </dl>
    <dl>
        <dt>
            <label for="<?php echo $this->form->email->getId(); ?>">
                <?php echo $this->form->email->getLabel(); ?>
                <?php echo $this->form->email->renderErrors(); ?>
            </label>
        </dt>
        <dd>
            <?php echo $this->form->email->renderViewHelper(); ?>
        </dd>
    </dl>
    <dl>
        <dt>
            <label for="<?php echo $this->form->password->getId(); ?>">
                <?php echo $this->form->password->getLabel(); ?>
                <?php echo $this->form->password->renderErrors(); ?>
            </label>
            <small>Leaving this field blank will not change the password</small>
        </dt>
        <dd>
            <?php echo $this->form->password->renderViewHelper(); ?>
        </dd>
        <dd>
            <?php echo $this->form->passwordReset->renderViewHelper(); ?>
            <label for="<?php echo $this->form->passwordReset->getId(); ?>"><?php echo $this->form->passwordReset->getLabel(); ?></label>
        </dd>
    </dl>
    <dl>
        <dt>
            <label for="<?php echo $this->form->passwordConfirm->getId(); ?>">
                <?php echo $this->form->passwordConfirm->getLabel(); ?>
                <?php echo $this->form->passwordConfirm->renderErrors(); ?>
            </label>
        </dt>
        <dd>
            <?php echo $this->form->passwordConfirm->renderViewHelper(); ?>
        </dd>
    </dl>
</fieldset>
<fieldset>
    <legend>User roles: </legend>
    <dl>
        <dt><label><?php echo $this->form->roles->getLabel(); ?></label></dt>
        <dd>
            <?php echo $this->form->roles->renderViewHelper(); ?>
        </dd>
        <dd>
            <a href="<?php echo $this->url(array('action' => 'index', 'controller' => 'roles')); ?>">Manage roles</a>
        </dd>
    </dl>
</fieldset>
<fieldset>
    <dl>
        <dt>
        <label>Actions</label>
        </dt>
        <dd>
        <?php echo $this->form->submit->renderViewHelper(); ?>
        <?php echo $this->form->disable->renderViewHelper(); ?>
        </dd>
    </dl>
</fieldset>
</form>